package constructor;

public class Student {
    String name;
    double score;
    //无参数构造器
    public Student(){
        System.out.println("无参数构造器被执行啦");
    }

    //有参数构造器
    public Student(String name,double score){
        //注意在这里你得先在前面做好定义
        System.out.println("有参数构造器被执行啦");
        this.name = name ;
        this.score = score;



    }
}
